package com.duanjw.springcloud.seata.consumer.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户 Mapper
 * @author duanjw
 */
@Mapper
public interface UserMapper {
    /**
     * 根据id删除用户
     * @param id
     * @return
     */
    @Delete("delete from user where id = #{id}")
    int deleteById(Integer id);
}
